package com.itheima.thread.diyThread4Ways;

/**
 * @Author: Ethan Yankang
 * @Program: interview
 * @Date: 2024-07-28 14:49
 **/
public class ExtendsByThread extends Thread{
    @Override
   public void run(){
        System.out.println("这是通过继承Thread线程创建的线程");
    }

    public static void main(String[] args) {
        ExtendsByThread thread1 = new ExtendsByThread();
        ExtendsByThread thread2 = new ExtendsByThread();
        thread1.start();
        thread2.start();
    }
}
